import request from '@/utils/request'

// 查询不良品信息记录列表
export function listScmDefectInfo(query) {
  return request({
    url: '/scm/scmDefectInfo/list',
    method: 'get',
    params: query
  })
}

// 查询不良品信息记录详细
export function getScmDefectInfo(id) {
  return request({
    url: '/scm/scmDefectInfo/' + id,
    method: 'get'
  })
}

// 新增不良品信息记录
export function addScmDefectInfo(data) {
  return request({
    url: '/scm/scmDefectInfo',
    method: 'post',
    data: data
  })
}

// 修改不良品信息记录
export function updateScmDefectInfo(data) {
  return request({
    url: '/scm/scmDefectInfo',
    method: 'put',
    data: data
  })
}

// 删除不良品信息记录
export function delScmDefectInfo(id) {
  return request({
    url: '/scm/scmDefectInfo/' + id,
    method: 'delete'
  })
}
